const { VITE_HIDE_HOME } = import.meta.env;

export default [
  {
    path: "/carouselimage",
    name: "Carouselimage",
    component: () => import("@/views/carouselimage/index.vue"),
    meta: {
      icon: "ri:multi-image-fill",
      title: "轮播图管理",
      showLink: VITE_HIDE_HOME === "true" ? false : true,
      rank: 0
    }
  },
  {
    path: "/notice",
    name: "NoticeManger",
    component: () => import("@/views/notice/index.vue"),
    // ri/notification-3-fill
    meta: {
      icon: "ri:volume-down-fill",
      title: "公告管理",
      showLink: VITE_HIDE_HOME === "true" ? false : true,
      rank: 0
    }
  },
  {
    path: "/parkadeinfo",
    name: "Parkadeinfo",
    component: () => import("@/views/parkadeinfo/index.vue"),
    meta: {
      icon: "ri:parking-box-fill",
      title: "停车场",
      showLink: VITE_HIDE_HOME === "true" ? false : true,
      rank: 0
    }
  },
  {
    path: "/peripheryinfo",
    name: "Peripheryinfo",
    component: () => import("@/views/peripheryinfo/index.vue"),
    meta: {
      icon: "ri:compass-3-fill",
      title: "周边信息",
      showLink: VITE_HIDE_HOME === "true" ? false : true,
      rank: 0
    },
    children: [
      {
        path: "/PeripheryinfoMS",
        name: "PeripheryinfoMS",
        component: () => import("@/views/peripheryinfo/index.vue"),
        meta: {
          title: "餐饮",
          icon: "ri:bowl-fill",
          showLink: VITE_HIDE_HOME === "true" ? false : true,
          poiType: "DINING" // 添加类型标识
        }
      },
      {
        path: "/PeripheryinfoJD",
        name: "PeripheryinfoJD",
        component: () => import("@/views/peripheryinfo/index.vue"),
        meta: {
          title: "景点",
          icon: "ri:ancient-pavilion-fill",
          showLink: VITE_HIDE_HOME === "true" ? false : true,
          poiType: "ATTRACTION" // 添加类型标识
        }
      },
      // {
      //   path: "/PeripheryinfoJYZ",
      //   name: "PeripheryinfoJYZ",
      //   component: () => import("@/views/peripheryinfo/index.vue"),
      //   meta: {
      //     title: "加油站",
      //     icon: "ri:oil-fill",
      //     showLink: VITE_HIDE_HOME === "true" ? false : true,
      //     poiType: "AIR" // 添加类型标识
      //   }
      // },
      {
        path: "/PeripheryinfoWX",
        name: "PeripheryinfoWX",
        component: () => import("@/views/peripheryinfo/index.vue"),
        meta: {
          title: "服务",
          icon: "ri:tools-fill",
          showLink: VITE_HIDE_HOME === "true" ? false : true,
          poiType: "SERVICE" // 添加类型标识
        }
      }
    ]
  }
] satisfies RouteConfigsTable[];
